<template>
  <div>
    <div>
      <h2>{{row.title}}</h2>
      <p style="padding-left:10px">
        <span>{{tiems}}</span>&emsp;
        <span>{{row.username}}</span>&emsp;
        <i class="el-icon-view">&emsp;&nbsp;{{row.visits}}</i>
      </p>
    </div>
    <el-card style="backgroundColor:#f5f5f5;border-top:1px dashed #ccc">
      <div v-html="row.articleBody"></div>
    </el-card>
  </div>
</template>

<script>
import dayjs from 'dayjs'
export default {
    props: ['row'],
    data() {
        return {
            tiems: ''
        }
    },
    created() {
        this.articleDetails()
        console.log(this.row)
        this.tiems = dayjs(this.row.createTime).format('YYYY-DD-MM hh:mm:ss')
    },
    methods: {
        async articleDetails() {}
    }
}
</script>

<style lang="less" scoped>
</style>